body.CoreBody .el-tree {
  background: transparent;

  /* ============================== 箭头改方框 ============================== */
  .el-tree-node__expand-icon {
    position: relative;
    width: 13px;
    height: 13px;
    margin: -0.5px 4px 0;
    padding: 0;
    border: 1px solid var(--Primary);

    /* —————————————————————————————— 一横 —————————————————————————————— */
    &::after {
      content: "";
      position: absolute;
      top: 6px;
      left: 3px;
      width: 7px;
      height: 1px;
      background: var(--Primary);
    }

    /* —————————————————————————————— 一竖 —————————————————————————————— */
    &:before {
      content: "";
      position: absolute;
      top: 3px;
      left: 6px;
      width: 1px;
      height: 7px;
      background: var(--Primary);
      transition: 0.3s;
    }

    /* —————————————————————————————— 展开状态 —————————————————————————————— */
    &.expanded {
      transform: none;

      &:before {
        content: "";
        top: 6.5px;
        height: 0;
      }

      /* ------------------------------ 弥补方框和虚线之间的空隙 ------------------------------ */
      + div {
        position: relative;

        &::before {
          content: "";
          position: absolute;
          z-index: 10;
          left: -23px;
          bottom: 1px;
          height: 7px;
          margin-left: 11px;
          border-left: 1px dashed var(--Primary);
        }
      }
    }

    /* —————————————————————————————— 叶子节点 —————————————————————————————— */
    &.is-leaf {
      border-color: transparent;
      pointer-events: none;

      &::before,
      &::after {
        display: none;
      }
    }
  }

  /* ============================== 鼠标悬浮背景色 ============================== */
  .el-tree-node__content:hover {
    background-color: var(--Primary1);
  }

  /* ============================== 辅助虚线 ============================== */
  .el-tree-node__children {
    position: relative;

    /* —————————————————————————————— 左侧竖向虚线 —————————————————————————————— */
    &::before {
      content: "";
      position: absolute;
      z-index: 10;
      top: 1px;
      height: calc(100% - 17px);
      border-left: 1px dashed var(--Primary);
    }

    /* —————————————————————————————— 底部横向虚线 —————————————————————————————— */
    &::after {
      content: "";
      position: absolute;
      z-index: 10;
      bottom: 15px;
      left: 7px;
      width: 20px;
      border-top: 1px dashed var(--Primary);
    }
  }

  /* ============================== 计算虚线位置 ============================== */
  @for $i from 0 to 11 {
    .el-tree-node__content[style="padding-left: #{$i * 18}px;"] + .el-tree-node__children {
      &::before,
      &::after {
        left: $i * 18 + 11px;
      }
    }
  }
}
